#include "FileProcessor.h"
#include "tinyxml2.h"

#include <iostream>
#include <regex>
#include <fstream>

using std::cout;
using std::endl;
using std::ofstream;


void FileProcessor::createWeb(vector<string> &fileName) {
    _rssReader.parseRss(fileName);//解析
    _rssReader.dumpWebLib("ripepage.dat");//输出到文件
    cout << "网页库生成成功" << endl;
}

void FileProcessor::createWebOffsetLib(vector<string> &filename) {
    _rssReader.dumpOffsetLib("offset.dat");
    cout << "网页偏移库生成成功" << endl;
}
